/*
package von.seiji.cn.imageT;
 
public class CalcTestDemo {
 
    static AutoTestRobot robot = new AutoTestRobot();
     
    public static void main(String[] args) throws Exception {
         
        Runtime.getRuntime().exec("java -jar D:/Other/JavaSwingCalc.jar");
        Thread.sleep(3000);
         
        String imageDir = System.getProperty("user.dir") + "/javacalc/";
         
        robot.moveAndInput(imageDir + "numberx.png", "300");
        robot.moveAndInput(imageDir + "numbery.png", "200");
        robot.moveAndSelect(imageDir + "calctype.png", 1);
        robot.moveAndClick(imageDir + "docalc.png");
         
        if (robot.isExists(imageDir + "result.png")) {
            System.out.println("测试成功.");
        }
        else {
            System.out.println("测试失败.");
        }
    }
 
}*/
